// app.js
App({
  onLaunch() {
    const token = wx.getStorageSync('token');
    if (!token) {
      wx.redirectTo({
        url: '/pages/login/login'
      });
    }
  },

  globalData: {
    userInfo: null,
    token: null
  }
});
